Test.php

<?php

namespace Tlf\DataConverter\Test;  
  
class Main extends \Taeluf\Tester {  
  
    /** called before tests are run */  
    public function prepare(){}  
  
    /** Test methods must prefix with `test` */  
    public function testCleanCsv(){  
        // require_once(dirname(__DIR__,2).'/vendor/autoload.php');
        $dirty_csv_file = dirname(__DIR__).'/in/other/dirty-csv.csv';
        $write_to = dirname(__DIR__).'/in/other/clean-csv.csv';
        $verify = dirname(__DIR__).'/verify/other/clean-csv.csv';

        $converter = new \Tlf\DataConverter();
        $converter->clean_csv($dirty_csv_file, $write_to);

        $this->compare('file://'.$verify, 'file://'.$write_to);
    }  

    public function testCsvToJson(){

        $clean_csv_file = dirname(__DIR__).'/verify/other/clean-csv.csv';
        $out_file = dirname(__DIR__).'/in/other/json.json';
        $verify = dirname(__DIR__).'/verify/other/json.json';

        $converter = new \Tlf\DataConverter();
        $converter->convert_to_json($clean_csv_file, $out_file);

        $this->compare('file://'.$verify, 'file://'.$out_file);
    }
}